package com.wx.springboot.step9back.mapper;


import com.wx.springboot.step9back.model.Permission;
import com.wx.springboot.step9back.model.TransferTeam;
import com.wx.springboot.step9back.model.User;
import com.wx.springboot.step9back.model.UserRole;

import java.util.List;
import java.util.Map;

public interface UserMapper {

    User findUserByUserCode(String userCode);

    int saveUser(User user);

    int updateUser(User user);

    List<User> getUserList(Map<String, Object> data);

    int getSelectCount(Map<String, Object> data);

    int updateState(User user);

    List<User> getUserByTeamCode(String teamCode);

    List<User> getUserItemByNoTeamCode();

    int updateUserTeam(Map params);

    int getCountByTeam(String teamCode);

    int updateUserToStu(User user);

    int updateUserToLea(User user);

    int updateLeaderToStu(Integer id);

    List<Permission> getPermissionsByUserId(String userCode);

    List<User> getUserByUserCode(String username);

    void saveUserRole(UserRole userRole);

    int delUser(User user);

    void updateUserRole(UserRole userRole);

    List<User> getStudentList(Map<String, Object> data);

    int getStudentCount(Map<String, Object> data);

    int updateStudent(User user);

    List<User> getTeacherList();

    List<User> getCoachList();

    void addTransferTeam(TransferTeam transferTeam);

    List<User> getUserCodes(List<Integer> ids);

    int addTransferTeams(Map maps);

    UserRole getUserByUserRole(String userCode);
}
